﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Utility
{
    public class Log
    {
        private StringBuilder sbLog;
        public Log()
        {
            this.sbLog = new StringBuilder();
        }
        public Log(string text) : base()
        {
            Add(text);
        }

        public void Add(string text)
        {
            this.sbLog.AppendLine(text);
        }

        public void Save(string pathToTXT)
        {
            Utility.IO.FileSystem.FilePutContent(pathToTXT, this.sbLog.ToString());
        }
    }
}
